#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

int main() {
    printf("Current process: %d\n", getpid());

    // 设置新的环境变量
    char *new_env[] = {"A=aaa", "B=bbb", NULL};

    // 执行 /usr/bin/env 程序,使用新的环境变量
    execle("/usr/bin/env", "env", NULL, new_env);

    printf("This line will never be executed.\n");
    return 0;
}